<h2 class="contentTitle">发布文章</h2>
<div class="pageContent">
	<form method="post" action="__URL__/insert" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
        <div class="pageFormContent" layoutH="97">
			
			<p>
				<label>标题：</label>
				<input name="title" class="required" type="text" size="30"/>
			</p>

            <p>
                <label>作者：</label>
				<input disabled="true" value="<?php echo $_SESSION[C('USER_AUTH_NAME')]; ?>" name="author_temp" type="text" size="30"/>
                <input type="hidden" name="author" value="<?php echo $_SESSION[C('USER_AUTH_NAME')]; ?>"/>
            </p>
            
			<p>
				<label>备注：</label>
				<input name="remark" type="text" size="30" />
			</p>
            
                        
            <p>
                <?php
                    $where['level'] = 0;
                    $where['custom_flag'] = 0; // 非自定义目录
                    $menu_level_1 = M("Menu")->where($where)->order('id asc')->select(); 
                ?>
                <label>选择栏目：</label>
                <select class="combox" name="memu_level_1" ref="combox_memu_level_2" refUrl="__URL__/combox_menu_level_2/id/{value}">
                        <option value="0">请选择一级目录</option>
                        <volist id="vo" name="menu_level_1">
                            <option value="{$vo['id']}">{$vo['name']}</option>
                        </volist>
                </select>
                
                <select class="combox" name="memu_level_2" id="combox_memu_level_2">
                      <option value="0">二级目录</option>
                </select>

            </p>
            
            <div class="divider"></div>
            <h3>编辑文章</h3>
            
            <div class="unit">
				<textarea class="editor" name="article" rows="16" cols="100"
					upLinkUrl="__PUBLIC__/upload.php" upLinkExt="zip,rar,txt,doc,docx,xls,xlsx,ppt,pptx,mpp,docm,pdf,chm,dwg" 
					upImgUrl="__PUBLIC__/upload.php" upImgExt="jpg,jpeg,gif,png" 
					upFlashUrl="__PUBLIC__/upload.php" upFlashExt="swf"
					upMediaUrl="__PUBLIC__/upload.php" upMediaExt="avi"></textarea>
                    
			</div>
			
		</div>
        
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
